package com.jwsoft.manager.common.enums;

import com.bifang.assistant.common.enums.DictType;

/**
 * @Author chenzh
 * @Date 2023/2/14 17:37
 */
public enum IrsSyncDataTypeEnum  {
    idcard("idcard", "身份证");

    private String type;
    private String name;

    IrsSyncDataTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static IrsSyncDataTypeEnum getByType(String type) {

        for (IrsSyncDataTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
